import java.sql.SQLOutput;
import java.util.Scanner;
public class test_01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入税前工资");
        int money = sc.nextInt();
        double before = money - (money * 0.1) - 5000;
        double tax = 0;
        if(before > 0 && before <= 3000){
            tax = before * 0.03;
        }else if(before > 3000 && before <= 12000){
            tax = 3000 * 0.03 + (before - 3000) * 0.1;
        }else if(before > 12000 && before <= 25000){
            tax = 3000 * 0.03 + 9000 * 0.1 +(before - 12000);
        }else if(before > 25000 && before <= 35000){
            tax = 3000 * 0.03 + 9000 * 0.1 + 13000 * 0.2 +(before-25000)*0.25;
        }else if(before > 35000 && before <=55000){
            tax = 3000 * 0.03 + 9000 * 0.1 + 13000 * 0.2 + 10000 * 0.25 + (before-35000)*0.3;
        }else if(before > 55000 && before <=80000){
            tax = 3000 * 0.03 + 9000 * 0.1 + 13000 * 0.2 + 10000 * 0.25 + 20000 * 0.3 + (before-55000)*0.35;
        }else if(before > 80000){
            tax = 3000 * 0.03 + 9000 * 0.1 + 13000 * 0.2 + 10000 * 0.25 + 20000 * 0.3 + 25000 * 0.35 + (before-80000)*0.45;
        }
        double after = money - (money * 0.1) - tax;
        double insurance= 0.1 * money;
        System.out.println("五险一金"+insurance+"元");
        System.out.println("个人所得税"+tax+"元");
        System.out.println("税后工资"+after+"元");
    }
}
